package com.example.taluo.utils;

import org.codehaus.jackson.map.ObjectMapper;

/*** @Author supersaiya
 * @Description TODO

 * @Date 2025/2/19 12:05

 * @Version 1.0*/
public class GameUtils {
    private static final ObjectMapper objectMapper = new ObjectMapper();

    public static String objectToJson(Object object) {
        try {
            return objectMapper.writeValueAsString(object);
        } catch (Exception e) {
            e.printStackTrace();
            return null;
        }
    }
}
